<?php
$this->pageHeader = t('PAGE_HEADER_RESET_PASSWORD', 'authorization');
$this->pageTitle = t('PAGE_TITLE_RESET_PASSWORD', 'authorization');
?>
<div class="form">
    <?php
    $form = $this->beginWidget('CActiveForm', array(
        'id' => 'activation-form',
        'enableClientValidation' => true,
        'clientOptions' => array('validateOnSubmit' => true, 'validateOnType' => true)
            ));
    ?>    
    <table class="form" style="width: 100%">        
        <tr>
            <td class="label"><?php echo $form->labelEx($model, 'email'); ?> </td>
            <td class="input">
                <?php echo $model->email ?>
            </td>
        </tr>
        <tr>
            <td class="label required"><?php echo $form->labelEx($model, 'username'); ?> </td>
            <td class="input">
                <?php echo $model->username ?>                 
            </td>
        </tr>
        <tr>
            <td class="label required"><?php echo $form->labelEx($model, 'new_password'); ?> </td>
            <td class="input">
                <?php echo $form->passwordField($model, 'new_password', array('style' => 'width:239px', 'placeholder' => 'Password')); ?>
                <?php echo $form->error($model, 'new_password'); ?>                   
            </td>
        </tr>
        <tr>
            <td class="label required"><?php echo $form->labelEx($model, 'new_password_repeat'); ?> </td>
            <td class="input">
                <?php echo $form->passwordField($model, 'new_password_repeat', array('style' => 'width:239px', 'placeholder' => 'Confirm Password')); ?>
                <?php echo $form->error($model, 'new_password_repeat'); ?>                   
            </td>
        </tr>
        <tr><td style="height: 30px;"></td></tr>
        <tr>
            <td colspan="2" class="cbutton" align="left">
                <table width="100%">
                    <tr>
                        <td class="label"></td>
                        <td align="left">
                            <button id="btnSave" type="submit" class="button">Submit</button>                    
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
    <?php $this->endWidget(); ?>
</div>
<script type="text/javascript">LGCMS.addTooltip();</script>